package com.leyou.item.inter.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zqq
 * @ClassName CategoryUpdateDTO
 * @Description
 * @date 2020/3/14-16:41
 */
@Data
@ApiModel(value = "CategoryUpdateDTO", description = "类目新增或修改类")
public class CategoryUpdateDTO {

    /** 类目id */
    @ApiModelProperty(value = "类目id", name = "id")
    private Long id;

    /** 类目名称 */
    @ApiModelProperty(value = "类目名称", name = "name")
    private String name;

    /** 父类目id,顶级类目填0 */
    @ApiModelProperty(value = "父类目id,顶级类目为0", name = "parentId")
    private Long parentId;

    /** 是否为父节点，0为否，1为是 */
    @ApiModelProperty(value = "是否为父节点，0为否(false)，1为是(true)", name = "isParent")
    private Boolean isParent;

    /** 排序指数，越小越靠前 */
    @ApiModelProperty(value = "排序指数，越小越靠前", name = "sort")
    private Integer sort;

    /** 接口类型：0/新增品牌，1/编辑品牌  */
    @ApiModelProperty(value = "接口类型：0/新增，1/编辑", name = "type",required = true)
    private int type;
}
